<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>BootStrap项目实战</title>
    <link rel="stylesheet" href="css/bootstrap.min.css"/>
    <link rel="stylesheet" href="css/bootstrap-maizi.css"/>
    <link rel="stylesheet" href="css/animate.css"/>
    <link rel="stylesheet" href="css/bootstrap-theme.css">
</head>
<script language="JavaScript" type="text/javascript">
    function submitu(form1){
        if(form1.editname.value==""){
            alert("请输入管理员名称！");
            form1.admin_user.select();
            return(false);
        }
        if(form1.editpassword.value==""){
            alert("请输入管理员密码！");
            form1.editpassword.select();
            return(false);
        }
        if(form1.editpasswordre.value==""){
            alert("请输入新密码！");
            form1.editpasswordre.select();
            return(false);
        }
        if(form1.editnewpasswordre.value==""){
            alert("请输入确认密码！");
            form1.editnewpasswordre.select();
            return(false);
        }
        if(form1.editpasswordre.value!=form1.editnewpasswordre.value){
            alert("您输入的新密码和确认密码不符！");
            form1.editnewpasswordre.select();
            return(false);
        }
        if(form1.yzm.value==""){
            alert("请输入验证码！");
            form1.yzm.select();
            return(false);
        }
        return(true);
    }
</script>


<body>

<!--导航-->
<nav class="navbar navbar-default">
    <div class="container">
        <!--        小屏幕导航按钮和logo-->
        <div class="navbar-header">
            <button class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a href="index.php" class="navbar-brand">同享发票管理</a>
        </div>
        <!--        小屏幕导航按钮和logo end-->
        <!--     导航   -->
        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
                <li class=""><a href="index.php"><span class="glyphicon glyphicon-home"></span>&nbsp;&nbsp;&nbsp;后台首页</a></li>
                <li class="active"><a href="user_list.php"><span class="glyphicon glyphicon-user"></span>&nbsp;&nbsp;用户管理</a></li>
                <li class=""><a href="content.php"><span class="glyphicon glyphicon-list-alt"></span>&nbsp;&nbsp;内容管理</a></li>
                <li class=""><a href="content_post.php"><span class="glyphicon glyphicon-list-alt"></span>&nbsp;&nbsp;发票录入</a></li>
                <li class=""><a href="content_update.php"><span class="glyphicon glyphicon-list-alt"></span>&nbsp;&nbsp;修改发票</a></li>
                <!--                <li class=""><a href="tag.php"><span class="glyphicon glyphicon-tags"></span>&nbsp;&nbsp;标签管理</a></li>-->
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    <a id="dLabel" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        admin
                        <span class="caret"></span>
                    </a>
                    <ul class="dropdown-menu" aria-labelledby="dLabel">
                        <li><a href="index.php"><span class=" glyphicon glyphicon-screenshot"></span>&nbsp;&nbsp;前台首页</a></li>
                        <li><a href="index.php"><span class="glyphicon glyphicon-user"></span>&nbsp;&nbsp;个人主页</a></li>
                        <li><a href="index.php"><span class="glyphicon glyphicon-cog"></span>&nbsp;&nbsp;个人设置</a></li>
                        <li><a href="index.php"><span class="glyphicon glyphicon-credit-card"></span>&nbsp;&nbsp;账户中心</a></li>
                        <li><a href="index.php"><span class="glyphicon glyphicon-heart"></span>&nbsp;&nbsp;我的收藏</a></li>
                    </ul>
                </li>
                <li class=""><a href="#home"><span class="glyphicon glyphicon-off"></span>&nbsp;&nbsp;退出</a></li>
            </ul>
        </div>
    </div>
</nav>
<!--导航-->
<div class="container">
    <div class="row">
        <div class="col-md-2">
            <div class="list-group">
                <a href="user_list.php" class="list-group-item ">用户管理</a>
                <a href="user_search.php" class="list-group-item">用户搜索</a>
                <a href="" role="button"  class="list-group-item" data-toggle="modal" data-target="#myModal">添加用户</a>
                <a href="user_edit.php" class="list-group-item active">修改用户</a>
            </div>
        </div>
        <div class="col-md-10">
            <div class="page-header">
                <h1>用户管理</h1>
            </div>
            <ul class="nav nav-tabs">
                <li class="">
                    <a href="user_list.php">用户列表</a>
                </li>
                <li>
                    <a href="user_search.php">用户搜索</a>
                </li>

                <li>
                    <a href="" role="button" data-toggle="modal" data-target="#myModal">添加用户</a>
                </li>
                <li class="active">
                    <a href="user_edit.php" >修改用户</a>
                </li>
            </ul>
            <form id="form1" action="user_update.php" method="post" autocomplete="on">
                <div class="form-group">
                    <label for="name">用户名</label>
                    <input type="text" id="name" name="name" class="form-control" placeholder="用户名" value="<?php echo $res->getRegname();?>">
                </div>
                <div class="form-group">
                    <label for="password">用户密码</label>
                    <input type="password" id="password" name = "password" class="form-control" placeholder="请输入用户密码">
                </div>
                <div class="form-group">
                    <label for="passwordre">新密码</label>
                    <input type="password" id="passwordre" name="newpassword" class="form-control" placeholder="用户密码">
                </div>
                <div class="form-group">
                    <label for="newpasswordre">确认密码</label>
                    <input type="password" id="newpasswordre"  name="newpassword1" class="form-control" placeholder="请确认用户密码">
                </div>

                <div class="form-group">
                    <label for="yzm">验证码</label>
                    <input type="text" id="yzm" class="form-control" placeholder="请输入验证码">
                </div>
                <div class="modal-footer">
                    <input type="hidden" id="hid" name="hid" class="form-control" value="<?php echo $res->getId();?>" >
                    <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                    <button type="Submit" name="Submit" class="btn btn-primary" value="提交">提交</button>
                </div>
<!--                <div class="form-group">-->
<!--                    <label for="edityonghuzu">所属用户组</label>-->
<!--                    <select name="" id="edityonghuzu" class="form-control">-->
<!--                        <option value="">限制会员</option>-->
<!--                        <option value="">新手上路</option>-->
<!--                        <option value="">注册会员</option>-->
<!--                        <option value="">中级会员</option>-->
<!--                        <option value="">高级会员</option>-->
<!--                    </select>-->
<!--                </div>-->

            </form>
            </div>
            </div>

<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title" id="myModalLabel">添加用户</h4>
            </div>

            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                <button type="button" class="btn btn-primary">提交</button>
            </div>
        </div>
    </div>
</div>

<!--footer-->
<footer>
    <div class="container">
        <div class="row">
            <div class="col-md-12">
                <p>
                    Copyright&nbsp;©&nbsp;2018-2020&nbsp;&nbsp;www.TongXiangBZsys.co&nbsp;&nbsp;琼ICP备2020号-4
                </p>
            </div>
        </div>
    </div>
</footer>

<!--<script src="js/bootstrap.min.js"></script>-->
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<!--<script src="js/jquery.singlePageNav.min.js"></script>-->
<!--<script src="js/wow.min.js"></script>-->
</body>
</html>